package com.fadadianqi.logistics.inventory.dao.ibatis;

import com.fadadianqi.commons.GenericDAOSuport;
import com.fadadianqi.logistics.inventory.dao.BacktrackDAO;
import com.fadadianqi.logistics.inventory.model.Backtrack;
import org.springframework.stereotype.Component;

@Component
public class BacktrackDAOImpl extends GenericDAOSuport<String, Backtrack> implements BacktrackDAO {

    @Override
    protected Class<?> getObjectClass() {
        return Backtrack.class;
    }

    @Override
    protected String getTableName() {
        return "backtrack";
    }

    @Override
    public int count() {
        return super.countAll(null);
    }

}
